package com.gxljc.bear.crawler.weixin;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * page mongodb table
 * Date: 16-7-29
 */
public class PageTable implements Serializable {

    String _id = null;//_id
    String pageId = null; //pageId
    String messageId = null; //messageId
    String title = null;        //文章标题
    Date publishDate = null;    //发布时间
    String accountId = null; //公众号id
    String accountName = null; //公众号名称
    String content = null;//内容
    String crawlUrl = null;//URL
    String cover = null; //封面
    Integer crawlFlag = null;//是否已爬取 0：未 1：是
    String summary = null; //摘要
    String orgUrl = null;
    Integer original = null; //是否原创 0 ：否 1：是
    Date crawlDate = new Date(); //爬取时间
    int status = 0; //是否已分析
    String html = null;    //内容html值
    Integer rsync = null; //是否已同步 0：否 1：是
    String wid = null; // 微信唯一ID MD5(__biz,mid,idx,sn)
    Integer failTime = null; //失败次数，超过5次，删除该文章

    public List<String> images = null;

    public PageTable() {

    }

    @Override
    public String toString() {
        return "PageTable{" +
                "_id='" + _id + '\'' +
                ", pageId='" + pageId + '\'' +
                ", messageId='" + messageId + '\'' +
                ", title='" + title + '\'' +
                ", publishDate=" + publishDate +
                ", accountId='" + accountId + '\'' +
                ", accountName='" + accountName + '\'' +
                ", content='" + content + '\'' +
                ", crawlUrl='" + crawlUrl + '\'' +
                ", cover='" + cover + '\'' +
                ", crawlFlag=" + crawlFlag +
                ", summary='" + summary + '\'' +
                ", orgUrl='" + orgUrl + '\'' +
                ", original=" + original +
                ", crawlDate=" + crawlDate +
                ", status=" + status +
                ", rsync=" + rsync +
                ", wid='" + wid + '\'' +
                ", images=" + images +
                '}';
    }

    public Integer getFailTime() {
        return failTime;
    }

    public void setFailTime(Integer failTime) {
        this.failTime = failTime;
    }

    public Integer getCrawlFlag() {
        return crawlFlag;
    }

    public void setCrawlFlag(Integer crawlFlag) {
        this.crawlFlag = crawlFlag;
    }

    public Integer getRsync() {
        return rsync;
    }

    public void setRsync(Integer rsync) {
        this.rsync = rsync;
    }

    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public void setOriginal(Integer original) {
        this.original = original;
    }

    public Integer getOriginal() {
        return original;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String getHtml() {
        return html;
    }

    public void setHtml(String html) {
        this.html = html;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCrawlDate() {
        return crawlDate;
    }

    public void setCrawlDate(Date crawlDate) {
        this.crawlDate = crawlDate;
    }

    public String getOrgUrl() {
        return orgUrl;
    }

    public void setOrgUrl(String orgUrl) {
        this.orgUrl = orgUrl;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getPageId() {
        return pageId;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCrawlUrl() {
        return crawlUrl;
    }

    public void setCrawlUrl(String crawlUrl) {
        this.crawlUrl = crawlUrl;
    }
}
